home *** CD-ROM | disk | FTP | other *** search
/ WH Questions 1 / WebberInteractiveWHQ&ALevel1.iso / Xtras / PrintOMatic Lite MX (Win32) / -PrintOMatic Lite MX Demo.dir / 00021_Field_21.txt < prev    next >
Text File  |  2004-04-06  |  4KB  |  84 lines

  1. Printing and Print Preview
  2.  
  3. The following commands are used to print or display a print preview of a PrintOMatic Lite document.
  4.  
  5.     printPreview displays an on-screen print preview of the requested item(s)
  6.     print prints the requested item(s) to the currently selected printer
  7.     printStage prints the contents of the stage with one line of Lingo code
  8.  
  9.  printPreview
  10.  
  11. Syntax:    printPreview(document)
  12.         printPreview(any [, ... ])
  13.  
  14. Returns: TRUE if the user previews all the pages in the document
  15.         FALSE if the user cancels the print preview
  16.  
  17. This function displays an on-screen facsimile of the output that the print command will generate when it is passed the same set of parameters. printPreview will display a preview of a document as well as sets of strings, sprites, cast members, lists, etc. See the print command for a complete list of the elements that can be previewed.
  18.  
  19. Typing any key or clicking in the preview window advances to the next page; typing command-period (Escape on Windows) cancels the preview without displaying all the pages. When the document can't be displayed on the main screen at 100% size (which is most of the time, unless you have a big monitor), the page is scaled to fit.
  20.  
  21. print
  22.  
  23. Syntax:    print member whichCastmember [,... ]
  24.         print member whichCastmember of castLib whichLib [, ... ]
  25.         print castLib whichCast [, ... ]
  26.         print sprite whichSprite [, ... ]
  27.         print string [, ... ]
  28.         print list [, ... ]
  29.         print document
  30.  
  31. The print command is an extension to Lingo provided by the PrintOMatic Xtra. This command is used to print one or more items to the currently selected printer. The following Director objects are printable:
  32.  
  33.     type of object           what gets printed
  34.     _________________________________________________________________
  35.  
  36.     text field cast member   the text of the field, using the 
  37.                              specified fonts and styles
  38.  
  39.     rich text cast member    the bitmap image of the cast member,
  40.                              including anti-aliasing
  41.  
  42.     bitmap cast member       the cast member graphic
  43.  
  44.     PICT cast member         the cast member graphic
  45.  
  46.     cast library             all printable cast members in the 
  47.                              library, in cast sequence
  48.  
  49.     sprite                   the cast member of the sprite
  50.  
  51.     text string              the text string, in the default font 
  52.                             (Geneva 10pt on Macintosh, 
  53.                              Arial 10pt on Windows)
  54.  
  55.     list                     the elements in the list
  56.  
  57.     document                 the contents of the PrintOMatic document
  58.  
  59. Examples:
  60.  
  61. You can print a number of objects together with a single call to the print command:
  62.  
  63.     print "Printed Output" & RETURN , member "image" , member "someText"
  64.  
  65. One of the most powerful uses of the print command is to assemble all the elements of a document into a single cast library, and print the entire cast library with one line of Lingo:
  66.  
  67.     print castLib "document"
  68.  
  69. printStage
  70.  
  71. Syntax:    printStage [(grabOffscreen)]
  72.  
  73. Returns: TRUE, if printing was successful, FALSE if printing was canceled.
  74.  
  75. This function prints the contents of the Stage (or Authorware presentation window) with one command. This routine uses a ΓÇ£best fitΓÇ¥ method to position the stage contents on the printed page. If the stage is wider than it is tall, the paper orientation is automatically switched to landscape mode. If the stage is exceptionally large, it is proportionally scaled to fit on the page within one-inch margins. The output is always centered on the page.
  76.  
  77. The grabOffscreen parameter affects whether the image on the stage is grabbed from the screen, or DirectorΓÇÖs offscreen buffer. The default is to grab from the offscreen buffer, which will not capture ΓÇ£trailsΓÇ¥, overlapping movies-in-a-window, the mouse cursor, or other windows. If grabOffscreen is false, the Xtra will take a ΓÇ£screen shotΓÇ¥ of the stage, including all ΓÇ£trailsΓÇ¥, and any other elements that may overlap the stage.
  78.  
  79. This command is not available in projectors until you register your copy of PrintOMatic Lite.
  80.  
  81. Examples:
  82.     
  83.     printStage        -- prints from offscreen buffer
  84.     printStage(FALSE) -- prints a screen shot